//
//  constant.swift
//  SwitfTest
//
//  Created by runone02 on 2018/12/28.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

import Foundation
import UIKit

// 当前app信息
let GetAppInfo = Bundle.main.infoDictionary
/// 当前app版本号
let GetAppCurrentVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString")


/// 通过 red 、 green 、blue 、alpha 颜色数值
let RGBAlpa:((Float,Float,Float,Float) -> UIColor ) = { (r: Float, g: Float , b: Float , a: Float ) -> UIColor in
    return UIColor.init(red: CGFloat(CGFloat(r)/255.0), green: CGFloat(CGFloat(g)/255.0), blue: CGFloat(CGFloat(b)/255.0), alpha: CGFloat(a))
}




// 默认图片
let defaultImg = UIImage(named: "photo_define")

///iPhoneX
let kIsIPhoneX = UIScreen.main.bounds.size.equalTo(CGSize(width: 375, height: 812))
/// 获取状态栏的高度
let kStatusBarHeight = UIApplication.shared.statusBarFrame.height
/// 导航栏高度
let kNavigationBarHeight:CGFloat = kIsIPhoneX ? 88:64
/// 底部高度
let kBottomToolBarHeight:CGFloat = kIsIPhoneX ? 80:49
/// 导航栏跟状态栏的高度
let kTopBarHeight = kStatusBarHeight + kNavigationBarHeight


//#define IMAGE(imageName)       [[UIImage imageNamed:[NSString stringWithFormat:@"%@",imageName]] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
let kBartintColor = UIColor(red: 54/255.0, green: 54/255.0, blue: 54/255.0, alpha: 1)

let kTableviewBackgroundColor = UIColor(red: 231/255.0, green: 231/255.0, blue: 231/255.0, alpha: 1)

let kCellDefaultBGColor = UIColor(red: 236/255.0, green: 236/255.0, blue: 236/255.0, alpha: 1)

let kCellSelectedBGColor = UIColor.white
/// 屏幕宽度
let SCREEN_WIDTH = UIScreen.main.bounds.width
/// 屏幕高度
let SCREEN_HEIGHT = UIScreen.main.bounds.height
/// app是否处于后台
var APP_IS_BACKGROUND:Bool = false

//let BASE_URL = "http://192.168.1.104:80/tt/"
let BASE_URL = "http://39.106.164.101:80/tt/"
let home_list_url = "getPostList.php"
let publish_url = "publish.php"
let register_url = "register.php"
let login_url = "login.php"
let update_profile_url = "updateProfile.php"
let update_deviceInfo_url = "updateDeviceInfo.php"
let get_msglist_url = "message.php"
let jubao_url = "jubao.php"

let comment_url = "comment.php"
let post_detail_url = "detail.php"
let get_sc_url = "getsc.php"
let fans_url = "fan.php"
let blackList_url = "blackList.php"

let delete_sc_url = "deletesc.php"
let feedback_url = "feedback.php"
let get_servernumber_url = "getNumberWithType.php"

let user_agreement_url = "p/userAgreement.html"
let aboutus_url = "p/aboutus.html"
let contactus_url = "p/contactus.html"
let disclaimer_url = "p/disclaimer.html"
let usehelp_url = "p/usehelp.html"
let privacy_agreement_url = "p/userPrivacy.html"
let feedbackList_url = "p/feedbackList.html"









